@charset "utf-8";

/* set up the fonts */
body{
	font-family:Verdana, sans-serif;
}
h1,h2,h3,h4{
	font-family:Georgia, serif;
}

/*style a few links */
.box a{
	color:#212020;
	text-decoration:none;
}
.box a:hover{
	text-decoration:underline;
}

/* position the content */
.wrapper{
	margin:0 auto;
	width:1280px; /* 扩大容器宽度以容纳 4 个 box (每个含边距总宽约 319px) */
}

/* style the header and footer */
#footer, #header{
	float:left;
	clear:both;
	padding: 10px;
	text-align:center;
	width:100%;
}

#content{
	float:left;
	width:100%;
	background-color:#ffcfcf;
}

/* create the floating boxes */
.box {
   float: left;
   margin: 6px;
   padding: 10px;
   width: 285px;
   height: 480px;
   border: 1px solid gray;
   background-color: rgb(254, 243, 243);
} 

/* style the box content */ 
.box img{
	width: 280px; 
}
.box h3, .box p{
	text-align:center;
}

/* 响应式设计部分：随着屏幕缩小，逐渐减少每行的 box 数量 */
@media screen and (max-width: 1300px){
	.wrapper{
		width:960px; /* 屏幕不够宽时，变成一行 3 个 */
	}
}
@media screen and (max-width: 960px){
	.wrapper{
		width:640px; /* 一行 2 个 */
	}
}
@media screen and (max-width: 640px){
	.wrapper{
		width:320px; /* 一行 1 个 */
	}
	h1, h2, h3, h4, p{
		word-wrap:break-word;
	}
	#header{
		padding:0;
	}
}